﻿/// <reference path="ModelKit.js" />
/// <reference path="myfilename.js" />
var dataTest = null;

dataTest = new MK.ModelKit.Model();

var accpuntCust = {

    onLoad: function () {
     
        debugger;

        dataTest = new MK.ModelKit.Employee();
        var currentDate = new Date();
        console.log(" Current Timestamp :-  Hours : " + currentDate.getHours() + " Minutes : " + currentDate.getMinutes() + " Seconds : " + currentDate.getSeconds() + " Milliseconds : " + currentDate.getMilliseconds());
        dataTest = new MK.ModelKit.Employee();
        newDateDiff = currentDate.differenceInTime(new Date());
        console.log("Timestamp Diff:-  Hours : " + newDateDiff.hh + " Minutes : " + newDateDiff.mm + " Seconds : " + newDateDiff.ss);
        dataTest.field.emailaddress1.value = "mihirkadam16@gmail.com"
    },
    onChange: function () {
        debugger;
        dataTest.field.name = "mihirform3";
       
    },
    onSave: function () {
        Xrm.Page.data.save().then(
        function () {
            Xrm.Utility.alertDialog("Record saved");
        },
        function (error) {
            Xrm.Utility.alertDialog(error.message);
        });

    }



};




